﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Com.Crc.ResManage.DAL.EquipManage;
using Com.Crc.PoJo.Model.Resource;
using System.Data;
using System.Collections;

namespace Com.Crc.ResManage.BLL.EquipManage
{
    public class SubDistrictManageBLL
    {
        BroadBandManagerSubDistrictDAL subdistrictdal = new BroadBandManagerSubDistrictDAL();
        public DataTable queryAll()
        {
            return subdistrictdal.QueryALL();
        }

        public DataTable queryAllSubdistictUnitInfo()
        {
            return subdistrictdal.queryAllSubdistictUnitInfo();
        }

        public DataTable QuerySubDistrictData()
        {
            return subdistrictdal.queryAllSubdistictInfo();
        }
        /// <summary>
        /// 查询小区信息
        /// </summary>
        /// <param name="strBranchID">分局ID</param>
        /// <param name="strSubDistrictID">小区ID</param>
        /// <returns></returns>
        public DataTable QuerySubDistrictData(string strBranchID, string strSubDistrictID)
        {
            try
            {
                SubDistrictManageDAL dal = new SubDistrictManageDAL();
                return dal.QuerySubdistrictData(strBranchID, strSubDistrictID);
            }
            catch (Exception ex)
            {
                string strError = ex.Message.ToString();
                return null;
            }
        }

    }
}
